filepath1_DATA="D:\MATLAB_code\fun_00\区域\区域2_DATA.mat";
filepath1_HEX="D:\MATLAB_code\fun_00\区域\区域2_HEX.mat";
filepath2_DATA="D:\MATLAB_code\fun_00\DATA.mat";
filepath2_HEX="D:\MATLAB_code\fun_00\HEX.mat";
filepath_locationReal="D:\MATLAB_code\fun_00\locationReal.mat";
Area=2;time_a=080000;time_b=180000;
%% 随机生成干扰源
interference_num=2;range=50;
[DATA,HEX,location_real]=data_process1(filepath1_DATA,filepath1_HEX,...
    filepath2_DATA,filepath2_HEX,filepath_locationReal,interference_num,...
    range,Area,time_a,...
    time_b); 
%% 手动生成干扰源
interference_num=2;location_real=[-115,44;-114.5,44.5];range=50;
[DATA,HEX,location_real]=data_process2(filepath1_DATA,filepath1_HEX,...
    filepath2_DATA,filepath2_HEX,filepath_locationReal,Area,time_a,...
    time_b,interference_num,location_real,range);
%% 计算区域干扰程度
tic
Area=2;step=0.5;fileSave_Q="D:\MATLAB_code\fun_00\Q.mat";
[Q]=fun_0(filepath2_DATA,filepath2_HEX,fileSave_Q,Area,step);
toc
%% 干扰源定位
Area=2;
 [location_detect,location_real,LocationError,...
     LocationError_avg,T,point1,point2]=fun_2(filepath2_DATA,...
     filepath2_HEX,filepath_locationReal,Area);
